﻿using AutoMapper;
using MiniErp.Repository.UnitOfWorkCore;

namespace MiniErp.Service.BusinessService
{
    public abstract class BaseService
    {
        /// <summary>
        /// 工作单元实例
        /// </summary>
        protected readonly IMysqlUnitOfWork _mysqlUnitOfWork;
        /// <summary>
        /// Automapper实例
        /// </summary>
        protected readonly IMapper _mapper;
        public BaseService(IMysqlUnitOfWork mysqlUnitOfWork, IMapper mapper)
        {
            _mysqlUnitOfWork = mysqlUnitOfWork;
            _mapper = mapper;
        }
    }
}
